<?php

namespace Admin\Controller;
use Common\Controller\AdminBaseController;

class ArticleController extends AdminBaseController
{
	public function index()
	{
		$m = M('User');
		// $data = M('article')->select();
		$data = $m->table('blog_user u,blog_category c,blog_article a')->field('a.aid,a.title,a.content,a.keywords,a.description,a.is_show,a.is_delete,a.is_top,a.is_original,a.click,a.ds,a.time,c.cname ,u.uname')->where('u.uid=a.uid AND a.cid=c.cid')->select();
		// p($list);
		// p($data);
		$this->assign('data',$data);
		$this->display();
                
                
	}

}